package com.lhl.flextes;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;

@EnableAsync //开启异步任务
@EnableScheduling //开启定时任务
@SpringBootApplication

@MapperScan("com.lhl.flextes.**.mapper")

public class AppDemo_flex_main {
	public static void main(String[] args) {
		SpringApplication.run(AppDemo_flex_main.class,args);
		System.out.println("启动ok");
	}

	@Scheduled(cron ="*/5 * * * * ?")
	public void sayHello() {
		System.out.println("hello");
	}

}
